package com.meilai.project.vo.business.installOrder;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.meilai.project.entity.business.installOrder.WorkOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;


/**
 * @author 杨凯博
 * @date 2022/3/17
 */


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value = "返回对象-工单管理-工单", description = "返回对象-工单管理-工单")
public class WorkOrderVO extends WorkOrder {
    @ApiModelProperty(value = "工人最新提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastSubmit;
    @ApiModelProperty(value = "执行状态，1：未执行，2：执行中，3：已过期，4：已完成，5：手动关闭")
    private Integer execute_status;
    @ApiModelProperty(value = "进度-安装待审核数量")
    private Integer installed_to_check_num;
    @ApiModelProperty(value = "进度-安装通过数量")
    private Integer installed_passed_num;
    @ApiModelProperty(value = "进度-总数量")
    private Integer total_num;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate start_at;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end_at;
    @ApiModelProperty(value = "媒体类型名称数据")
    private List<String> media_type_name_list;
}
